package com.example.administrator.VO;

/**
 * Created by ykbboom on 2017/1/2.
 */

public class UserPoint {
    private int _id;
    private int user_id;
    private int time_point;
    private int step_point;

    public UserPoint(){}
    public UserPoint(int _id, int user_id, int time_point, int step_point) {
        this._id = _id;
        this.user_id = user_id;
        this.time_point = time_point;
        this.step_point = step_point;
    }

    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getTime_point() {
        return time_point;
    }

    public void setTime_point(int time_point) {
        this.time_point = time_point;
    }

    public int getStep_point() {
        return step_point;
    }

    public void setStep_point(int step_point) {
        this.step_point = step_point;
    }

    public static UserPoint initializeUserPoint(int user_id, int time_point, int step_point){
        UserPoint userPoint = new UserPoint();//初始化用户id为1，计时得分 0，限步得分为 0
        userPoint.setUser_id(user_id);
        userPoint.setTime_point(time_point);
        userPoint.setStep_point(step_point);
        return  userPoint;
    }
}
